﻿@model UscSunShine.Models.Request

<link href="@Url.Content("~/Content/bootstrap-select.css")" rel="stylesheet" type="text/css" />
@{
    ViewBag.Title = "我有话说";
}
<!--
    <h2>Create</h2>
-->
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

    <div class="jumbotron font-detail">
        <div class="container">

            <table id="createTable" class="table table-bordered" style="border-color:red;border-width:0px;width:900px;">
                <tbody>
                    @Html.ValidationSummary(true)
                    <tr>
                        <td style="width: 110px; vertical-align: middle">
                            <strong>受理部门</strong>
                        </td>
                        <td>
                            <div>
                                @Html.DropDownList("DepartmentID")
                                @Html.ValidationMessageFor(model => model.DepartmentID)
                            </div>
                        </td>
                    </tr>

                    <tr>
                        <td style="width: 110px; vertical-align: middle">
                            <strong>申请类别</strong>
                        </td>
                        <td>
                            <div>
                                @Html.EnumDropDownListFor(model => model.RequestCategory)
                                @Html.ValidationMessageFor(model => model.RequestCategory)
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 110px; vertical-align: middle">
                            <strong>受理单号</strong>
                        </td>
                        <td>
                            <div>
                                @Html.TextBoxFor(m => Model.AcceptNumber, new { @readonly = "readonly" })
                                @*@Html.ValidationMessageFor(model => model.AcceptNumber)*@
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 110px; vertical-align: middle;">
                            <strong>主题</strong>
                        </td>
                        <td>
                            <div class="form-inline">
                                @Html.TextBoxFor(model => model.Title, new { @readonly = "readonly" })

                            </div>
                        </td>
                    </tr>

                    <tr>
                        <td style="width: 110px; vertical-align: middle; ">
                            <strong>正文</strong>
                        </td>
                        <td>
                            <div class="form-inline">
                                @Html.TextAreaFor(model => model.Content)
                                @Html.ValidationMessageFor(model => model.Content)
                            </div>
                        </td>
                    </tr>

                    <tr>
                        <td style="width: 110px; vertical-align: middle; ">
                            <strong>用户名称</strong>
                        </td>
                        <td>
                            <div class="form-inline">
                                @Html.TextBoxFor(model => model.Username, new { @readonly = "readonly" })
                                @Html.ValidationMessageFor(model => model.Username)
                            </div>
                        </td>
                    </tr>

                    <tr>
                        <td style="width: 110px; vertical-align: middle;">
                            <strong>联系电话</strong>
                        </td>
                        <td>
                            <div class="form-inline">
                                @Html.TextBoxFor(model => model.ContactPhone, new { @readonly = "readonly" })
                                @Html.ValidationMessageFor(model => model.ContactPhone)
                            </div>
                        </td>
                    </tr>

                    <tr>
                        <td style="width: 110px; vertical-align: middle; ">
                            <strong>电子邮件</strong>
                        </td>
                        <td>
                            <div class="form-inline">
                                @Html.TextBoxFor(model => model.Email, new { @readonly = "readonly" })
                                @Html.ValidationMessageFor(model => model.Email)
                            </div>
                        </td>
                    </tr>

                    <tr>
                        <td style="width:110px;vertical-align:middle">
                            <strong>期望解决日期</strong>
                        </td>
                        <td>
                            <div class="form-inline">
                                @Html.TextBoxFor(model => model.ExpectResolveDate, new { @readonly = "readonly" })

                                @Html.ValidationMessageFor(model => model.ExpectResolveDate)
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td><strong>审核意见</strong></td>
                        <td>
                            <div class="form-inline">
                                <input type="radio" name="SelectedRole" value="Pass" checked="checked" class="checkbox-inline" />
                                @Html.Label("通过", new { @class = "control-label" })
                                <input type="radio" name="SelectedRole" value="Reject" class="checkbox-inline" />
                                @Html.Label("不通过", new { @class = "control-label" })
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            <table>
                <tr>
                    <td>
                        <p>
                            <input type="submit" value="保存" class="btn btn-primary" />
                        </p>
                    </td>
                </tr>
            </table>

        </div>
    </div>
}

@section scripts {
    @Scripts.Render("~/bundles/jqueryval")

    <link rel="stylesheet" href="~/KindEditor/themes/default/default.css" />
    <link rel="stylesheet" href="~/KindEditor/plugins/code/prettify.css" />
    <script charset="utf-8" src="~/KindEditor/kindeditor-min.js"></script>
    <script type="text/javascript" src="~/KindEditor/lang/zh_CN.js"></script>
    <script charset="utf-8" src="~/KindEditor/plugins/code/prettify.js"></script>
    <script type="text/javascript" src="~/Scripts/usc-content-readonly.js"></script>
}
<script src="@Url.Content("~/Scripts/jquery-2.1.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/bootstrap-select.min.js")" type="text/javascript"></script>
<script>
    $('select').selectpicker();
    $('input').addClass('form-control');
    $('#Title').css("width", "100%");
</script>
